<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Show Applicant</title>
    </h:head>
    <h:body>
        <ui:composition template="/templates/template_admin.xhtml">
            <ui:define name="content">
                <f:view>
                    <h:form>
                        <h1><h:outputText value="List"/></h1>
                        <p:dataTable id="dataTable" value="#{hrmb.Applicantsearch()}" var="item" paginator="true" rows="5"  
                 paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
                 rowsPerPageTemplate="3,5,10,15">
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="ApplicantID"/>
                                </f:facet>
                                <h:outputText value="#{item.applicantID}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="FulltName"/>
                                </f:facet>
                                <h:outputText value="#{item.firstName} #{item.lastName}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Gender"/>
                                </f:facet>
                                <h:outputText value="#{item.gender}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Dob"/>
                                </f:facet>
                                <h:outputText value="#{item.dob}">
                                    <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                                </h:outputText>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="PhoneNumber"/>
                                </f:facet>
                                <h:outputText value="#{item.phoneNumber}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Email"/>
                                </f:facet>
                                <h:outputText value="#{item.email}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Address"/>
                                </f:facet>
                                <h:outputText value="#{item.address}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="SalaryRequirement"/>
                                </f:facet>
                                <h:outputText value="#{item.salaryRequirement}"/>
                            </p:column>
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="Language"/>
                                </f:facet>
                                <h:outputText value="#{item.language}"/>
                            </p:column>
                                                   
                            <p:column>
                                <f:facet name="header">
                                    <h:outputText value="CreatedDate"/>
                                </f:facet>
                                <h:outputText value="#{item.createdDate}">
                                    <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                                </h:outputText>
                            </p:column>  
                            <p:column>
                                 <f:facet name="header">
                                     <h:outputText value="Action"/>
                                 </f:facet>
                                <h:commandLink value="View" action="#{hrmb.appView(item)}"/><br/>
                             </p:column>
                            
                        </p:dataTable>
                        <p:commandButton action="Search" value="Back"/>
                    </h:form>
                </f:view>

            </ui:define>
        </ui:composition>
    </h:body>
</html>

